<?php
namespace app\admin\model;
use think\facade\Db;

class Order
{
    public static function getOrderlist($where)
    {
        $arr = Db::table('ecm_order')
            ->join('ecm_order_status','ecm_order.status=ecm_order_status.status_id')
            ->where($where)
            ->paginate([
                'list_rows'=>2,
                'query'=>input()
            ]);
        return $arr;
    }
    public static function getOrderlist1()
    {

        $order_status = Db::table('ecm_order_status')
            ->field(true)
            ->select();

        return $order_status;

    }
}